//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function getMember(params) {
    return request({
        url: 'admin/building/list',
        method: 'GET',
        data: params
    });
};
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
export async function delBuilding(params) {
    return request({
        url: 'admin/estate/delete',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function shareImg(params) {
    return request({
        url: 'admin/estate/qr-code/get',
        method: 'GET',
        data: params
    });
};

export async function downloadQrcode(params) {
    console.log(params.productId)
    return request({
        url: `admin/qrcode/download/times/count`,
        method: 'PUT',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
//
export async function qrcodeType(params) {
    return request({
        url: 'admin/qrcode/channel-type/list',
        method: 'GET',
        data: params,
    });
};
//选择类别时生成二维码
export async function qrcodeCreate(params) {
    return request({
        url: 'admin/estate/qr-code/create',
        method: 'GET',
        data: params,
    });
};

//楼盘推荐创建
export async function homeRecommendCreate(params) {
    return request({
        url: 'admin/homeRecommend/v2/saveProduct',
        method: 'POST',
        data: params
    });
};